package com.weiqiao.mall.repository;

import org.bson.conversions.Bson;

/**
 * 分销设置持久层
 *
 * @author
 */
public interface IDistributeRepository {

    /**
     * 更新单个
     *
     * @param json
     * @param filter
     * @return
     */
    boolean updateOne(Bson filter, String json);

    /**
     * 查询单个
     *
     * @param filter
     * @return
     */
    String findOne(Bson filter);

    /**
     * 查询单个
     *
     * @param filter
     * @return
     */
    boolean deleteOne(Bson filter);
}
